home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
How Would You Survive?
/
How Would You Survive (1995)(Grolier)[Mac-PC].iso
/
pc
/
shared.dir
/
01960_Script_TOC Buttons
< prev
next >
Wrap
Text File
|
1995-09-13
|
9KB
|
244 lines
Global gBtn1, gBtn2, gBtn3, gBtn4, gBtn5, gBtn6, gBtn7, gBtn8, gBtn9, ¼
gBtn16, gBtn17, gBtn18, gNewMarker, gBtnTOC1, gBtnTOC2, gBtnTOC3, gBtnTOC4, ¼
gBtnTOC5, gBtnTOC6, gBtnTOC7, gBtnTOC8, gBtnTOC9, gBtnTOC10, gBtnTOC11, ¼
gBtnTOC12, gBtnTOC13, gBtnTOC14, gBtnTOC15, gBtnTOC16,gTheHelpIsOn
-----------------------------------------------------------------------------
on ATOCSetUp
set ScriptNumber = the number of cast "a3StateButton"
set gBtnTOC1 = birth(script ScriptNumber, 4, 40, 0, "YourHome", "HandCursor")
set gBtnTOC2 = birth(script ScriptNumber, 5, 43, 0, "YourFamily", "HandCursor")
set gBtnTOC3 = birth(script ScriptNumber, 6, 46, 0, "LivingFarmer", "HandCursor")
set gBtnTOC4 = birth(script ScriptNumber, 7, 49, 0, "Workshops", "HandCursor")
set gBtnTOC5 = birth(script ScriptNumber, 8, 52, 0, "Clothes", "HandCursor")
set gBtnTOC6 = birth(script ScriptNumber, 9, 55, 0, "Market", "HandCursor")
set gBtnTOC7 = birth(script ScriptNumber, 10, 58, 0, "Entertainment", "HandCursor")
set gBtnTOC8 = birth(script ScriptNumber, 11, 61, 0, "pharoahs", "HandCursor")
set gBtnTOC9 = birth(script ScriptNumber, 12, 64, 0, "Wars", "HandCursor")
set gBtnTOC10 = birth(script ScriptNumber, 13, 67, 0, "Sickness", "HandCursor")
set gBtnTOC11 = birth(script ScriptNumber, 14, 70, 0, "TheGods", "HandCursor")
set gBtnTOC12 = birth(script ScriptNumber, 15, 73, 0, "MeasuringTime", "HandCursor")
set gBtnTOC13 = birth(script ScriptNumber, 16, 76, 0, "EndofEmpire", "HandCursor")
set gBtnTOC14 = birth(script ScriptNumber, 17, 79, 0, "Food", "HandCursor")
end
on AGlobalTOCRollover
if (the MouseV < 250) then
if hilightPullDown (gBtn1) then exit
if hilight (gBtn16) then exit
if hilight (gBtn18) then exit
if hilight (gBtnTOC1) then exit
if hilight (gBtnTOC2) then exit
if hilight (gBtnTOC4) then exit
if hilight (gBtnTOC5) then exit
if hilight (gBtnTOC8) then exit
if hilight (gBtnTOC9) then exit
if hilight (gBtnTOC12) then exit
if hilight (gBtnTOC13) then
exit
end if
else
if rollover(38) then
if gTheHelpIsOn = 1 then
puppetsound "SA142100.AIF"
updatestage
repeat while rollover(38)
nothing
end repeat
end if
puppetsound 0
end if
if Donthilight (gBtn2) then exit
if Donthilight (gBtn3) then exit
if hilight (gBtn4) then exit
if hilight (gBtn5) then exit
if hilight (gBtn6) then exit
if hilight (gBtn7) then exit
if hilight (gBtn8) then exit
if hilight (gBtn9) then exit
if hilight (gBtnTOC3) then exit
if hilight (gBtnTOC6) then exit
if hilight (gBtnTOC7) then exit
if hilight (gBtnTOC10) then exit
if hilight (gBtnTOC11) then exit
if hilight (gBtnTOC14) then exit
end if
end
-----------------------------------------------------------------------------
on ETOCSetUp
set ScriptNumber = the number of cast "a3StateButton"
set gBtnTOC1 = birth(script ScriptNumber, 4, 40, 0, "YourFamily", "HandCursor")
set gBtnTOC2 = birth(script ScriptNumber, 5, 43, 0, "YourHome", "HandCursor")
set gBtnTOC3 = birth(script ScriptNumber, 6, 46, 0, "Food", "HandCursor")
set gBtnTOC4 = birth(script ScriptNumber, 7, 49, 0, "Clothes", "HandCursor")
set gBtnTOC5 = birth(script ScriptNumber, 8, 52, 0, "Town", "HandCursor")
set gBtnTOC6 = birth(script ScriptNumber, 9, 55, 0, "OnTheRiver", "HandCursor")
set gBtnTOC7 = birth(script ScriptNumber, 10, 58, 0, "LivingFarmer", "HandCursor")
set gBtnTOC8 = birth(script ScriptNumber, 11, 61, 0, "Workshops", "HandCursor")
set gBtnTOC9 = birth(script ScriptNumber, 12, 64, 0, "Careers", "HandCursor")
set gBtnTOC10 = birth(script ScriptNumber, 13, 67, 0, "pharoahs", "HandCursor")
set gBtnTOC11 = birth(script ScriptNumber, 14, 70, 0, "Women", "HandCursor")
set gBtnTOC12 = birth(script ScriptNumber, 15, 73, 0, "TheGods", "HandCursor")
set gBtnTOC13 = birth(script ScriptNumber, 16, 76, 0, "Entertainment", "HandCursor")
set gBtnTOC14 = birth(script ScriptNumber, 17, 79, 0, "Sickness", "HandCursor")
set gBtnTOC15 = birth(script ScriptNumber, 18, 82, 0, "Superstitions", "HandCursor")
set gBtnTOC16 = birth(script ScriptNumber, 19, 85, 0, "Mummifications", "HandCursor")
end
on EGlobalTOCRollover
if (the MouseV < 250) then
if hilightPullDown (gBtn1) then exit
if hilight (gBtn17) then exit
if hilight (gBtn18) then exit
if hilight (gBtnTOC1) then exit
if hilight (gBtnTOC2) then exit
if hilight (gBtnTOC5) then exit
if hilight (gBtnTOC6) then exit
if hilight (gBtnTOC9) then exit
if hilight (gBtnTOC10) then exit
if hilight (gBtnTOC13) then exit
if hilight (gBtnTOC14) then
exit
end if
else
if rollover(38) then
if gTheHelpIsOn = 1 then
puppetsound "SE142100.AIF"
updatestage
repeat while rollover(38)
nothing
end repeat
end if
puppetsound 0
end if
if Donthilight (gBtn2) then exit
if Donthilight (gBtn3) then exit
if hilight (gBtn4) then exit
if hilight (gBtn5) then exit
if hilight (gBtn6) then exit
if hilight (gBtn7) then exit
if hilight (gBtn8) then exit
if hilight (gBtn9) then exit
if hilight (gBtnTOC3) then exit
if hilight (gBtnTOC4) then exit
if hilight (gBtnTOC7) then exit
if hilight (gBtnTOC8) then exit
if hilight (gBtnTOC11) then exit
if hilight (gBtnTOC12) then exit
if hilight (gBtnTOC15) then exit
if hilight (gBtnTOC16) then exit
end if
end
-----------------------------------------------------------------------------
on VTOCSetUp
set ScriptNumber = the number of cast "a3StateButton"
set gBtnTOC1 = birth(script ScriptNumber, 4, 649, 0, "YourFamily", "HandCursor")
set gBtnTOC2 = birth(script ScriptNumber, 5, 652, 0, "YourPlace", "HandCursor")
set gBtnTOC3 = birth(script ScriptNumber, 6, 655, 0, "YourHome", "HandCursor")
set gBtnTOC4 = birth(script ScriptNumber, 7, 658, 0, "Food", "HandCursor")
set gBtnTOC5 = birth(script ScriptNumber, 8, 661, 0, "Clothes", "HandCursor")
set gBtnTOC6 = birth(script ScriptNumber, 9, 664, 0, "LivingFarmer", "HandCursor")
set gBtnTOC7 = birth(script ScriptNumber, 10, 667, 0, "Town", "HandCursor")
set gBtnTOC8 = birth(script ScriptNumber, 11, 670, 0, "Workshops", "HandCursor")
set gBtnTOC9 = birth(script ScriptNumber, 12, 673, 0, "OnTheRiver", "HandCursor")
set gBtnTOC10 = birth(script ScriptNumber, 13, 676, 0, "Market", "HandCursor")
set gBtnTOC11 = birth(script ScriptNumber, 14, 679, 0, "Careers", "HandCursor")
set gBtnTOC12 = birth(script ScriptNumber, 15, 682, 0, "pharoahs", "HandCursor")
set gBtnTOC13 = birth(script ScriptNumber, 16, 685, 0, "Travelling", "HandCursor")
set gBtnTOC14 = birth(script ScriptNumber, 17, 688, 0, "TheGods", "HandCursor")
set gBtnTOC15 = birth(script ScriptNumber, 18, 691, 0, "Sickness", "HandCursor")
set gBtnTOC16 = birth(script ScriptNumber, 19, 694, 0, "Mummifications", "HandCursor")
end
on VGlobalTOCRollover
if (the MouseV < 250) then
if hilightPullDown (gBtn1) then exit
if hilight (gBtn17) then exit
if hilight (gBtn16) then exit
if hilight (gBtnTOC1) then exit
if hilight (gBtnTOC2) then exit
if hilight (gBtnTOC5) then exit
if hilight (gBtnTOC6) then exit
if hilight (gBtnTOC9) then exit
if hilight (gBtnTOC10) then exit
if hilight (gBtnTOC13) then exit
if hilight (gBtnTOC14) then
exit
end if
else
if rollover(38) then
if gTheHelpIsOn = 1 then
puppetsound "SV142100.AIF"
updatestage
end if
repeat while rollover(38)
nothing
end repeat
puppetsound 0
end if
if Donthilight (gBtn2) then exit
if Donthilight (gBtn3) then exit
if hilight (gBtn4) then exit
if hilight (gBtn5) then exit
if hilight (gBtn6) then exit
if hilight (gBtn7) then exit
if hilight (gBtn8) then exit
if hilight (gBtn9) then exit
if hilight (gBtnTOC3) then exit
if hilight (gBtnTOC4) then exit
if hilight (gBtnTOC7) then exit
if hilight (gBtnTOC8) then exit
if hilight (gBtnTOC11) then exit
if hilight (gBtnTOC12) then exit
if hilight (gBtnTOC15) then exit
if hilight (gBtnTOC16) then exit
end if
end
-------------------------------
on TOCKill
WatchCursor
hideControl (gBtnTOC1)
hideControl (gBtnTOC2)
hideControl (gBtnTOC3)
hideControl (gBtnTOC4)
hideControl (gBtnTOC5)
hideControl (gBtnTOC6)
hideControl (gBtnTOC7)
hideControl (gBtnTOC8)
hideControl (gBtnTOC9)
hideControl (gBtnTOC10)
hideControl (gBtnTOC11)
hideControl (gBtnTOC12)
hideControl (gBtnTOC13)
hideControl (gBtnTOC14)
if objectP (gBtnTOC15) then
hideControl (gBtnTOC15)
set gBtnTOC15 = 0
end if
if objectP (gBtnTOC16) then
hideControl (gBtnTOC16)
set gBtnTOC16 = 0
end if
set gBtnTOC1 = 0
set gBtnTOC2 = 0
set gBtnTOC3 = 0
set gBtnTOC4 = 0
set gBtnTOC5 = 0
set gBtnTOC6 = 0
set gBtnTOC7 = 0
set gBtnTOC8 = 0
set gBtnTOC9 = 0
set gBtnTOC10 = 0
set gBtnTOC11 = 0
set gBtnTOC12 = 0
set gBtnTOC13 = 0
set gBtnTOC14 = 0
end